const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  publicPath:"./",
  //配置反向代理
    devServer: {
      proxy: {
        '/api': {
          target: 'https://apis.netstart.cn/bcomic',  // 需要跨域的目标url
          changeOrigin: true,
          pathRewrite: {
            '^/api': '',  // 将请求的路径重写为 /api 后为空
          },
        },
      },
    }
})
